package com.example.g32.park

import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.base.mvi.BaseActivity
import com.example.base.mvi.BaseViewActivity
import com.example.g32.R
import com.example.g32.databinding.ActivityParkBinding
import com.example.g32.databinding.ActivityParkVractivityBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
@Route(path  ="/app/ParkVRActivity")
class ParkVRActivity : BaseViewActivity<ActivityParkVractivityBinding>() {
    override val binding by lazy {
        ActivityParkVractivityBinding.inflate(layoutInflater)
    }

    override fun initView() {
        val options = VrPanoramaView.Options()
        options.inputType = VrPanoramaView.Options.TYPE_MONO
        binding.vr.loadImageFromBitmap(Bitmap.createBitmap(BitmapFactory.decodeResource(resources, com.example.base.R.drawable.vr)), options)
    }

    override fun initData() {

    }

}